package bairui.international.console.web.controller.barter.property.item;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.servlet.ModelAndView;

import com.lianjing.sh.project.config.web.Project_Config_Web_PageTemplate;
import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.module.context.ModuleContext;
import com.lianjing.sh.spring.web.controller.enhance.navigations.context.NavigationContext;

/**
 *
 * 属性项添加
 *
 * @generated
 * 
 * @see STest_C_Barter_Property_PropertyItemAdd_AddAccess 测试
 *
 */
@Controller
public class C_Barter_Property_PropertyItemAdd_AddAccess
 extends SC_Barter_Property_PropertyItemAdd_AddAccess 
{
	
	/**
	 * 访问添加页面
	 */
	@Action(AddAccess.class)
	@GetMapping(AddAccess.RequestMappingValue)
	public ModelAndView addAccess(
		ModelMap map, HttpServletRequest request,
		NavigationContext navigationContext, ModuleContext moduleContext, 
		@PathVariable(name=AddAccess.PathVariableName.PropertyId) long propertyId
	) throws Exception {
		/* 模块 */
		moduleContext
			.addModule(module_Add.module(
					new C_Barter_Property_PropertyItemAdd_Add.Add.Operate(){
						@Override public Object getPropertyId() { return propertyId; }
					}
				));
		//
		return Project_Config_Web_PageTemplate.Admin_Common(request);
	}
	

}
